//
//  UIImage+Extension.h
//  ZiChanBao
//
//  Created by liujinliang on 15/6/15.
//  Copyright (c) 2015年 WorldUnion. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Extension)

- (id)setCircleImageWithSize:(CGSize)size radius:(NSInteger)r;

//按原图比例返回限定大小的图片 （未剪切）
-(UIImage*) getLimitImage:(CGSize) size;

// 按原图比例返回限定大小的图片（剪切）
-(UIImage*) getClickImage:(CGSize) size;

-(UIImage*)resizedImageToSize:(CGSize)dstSize;

-(UIImage*)resizedImageToFitInSize:(CGSize)boundingSize scaleIfSmaller:(BOOL)scale;
/**
 *  @author King, 15-05-05 09:05:52
 *
 *  颜色转图片
 *
 *  @param color <#color description#>
 *
 *  @return <#return value description#>
 */
+(UIImage *)getImageFromColor:(UIColor *)color;
@end
